home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol A-4
/
(Vol A-4) Vol. A4.iso
/
Games
/
loa_and_the_island.swf
/
scripts
/
DefineSprite_618
/
frame_30
/
PlaceObject2_615_1
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2008-03-17
|
1KB
|
44 lines
onClipEvent(enterFrame){
if(_root.paused == false)
{
if(_currentframe < 93)
{
ymove++;
_Y = _Y + ymove;
if(ymove > 0 and _Y < 165)
{
_rotation = _rotation - ymove;
}
else if(ymove < 0 and _Y < 165)
{
_rotation = _rotation + ymove;
}
}
if(_Y > 165)
{
_Y = 165;
ymove = (- ymove) / 3;
}
if(_root.level.shield._visible == true and (_root.level.shield.hitTest(_X + _parent._x + _parent._parent._x + _parent._parent._parent._x - 25,_Y + _parent._y + _parent._parent._y + _parent._parent._parent._y,true) or _root.level.shield.hitTest(_X + _parent._x + _parent._parent._x + _parent._parent._parent._x + 25,_Y + _parent._y + _parent._parent._y + _parent._parent._parent._y,true)))
{
ymove = -20;
}
if(_currentframe == 93 and _Y < 50)
{
if(_X < 0)
{
_root.lefteyehurt = true;
}
if(_X > 0)
{
_root.righteyehurt = true;
}
}
play();
}
if(_root.paused == true)
{
stop();
}
}